# -*- coding = utf-8 -*-
# @Time : 2020/12/5 15:17
# @Author : 家幸
# @File : demo3.py
# @Software : PyCharm

# if True:
#     print("True")
#     print("Answer")
# else:
#     print("False")
# print("end")

# score = 77
# if score >= 90 and score <= 100:
#     print("本次考试,等级为A")
# elif score >=80 and score <90:
#     print("本次考试，等级为B")
# elif score >= 70 and score < 80:
#     print("本次考试，等级为C")
# elif score >= 60 and score < 70:
#     print("本次考试，等级为D")
# else:
#     print("本次考试，等级为E")


# import random  #引入随机库
#
# x = random.randint(0,2) #随机生成[0,2]的随机数，包含0，1，2三个随机数
# print(x)

import random

x = random.randint(0, 2)

a = int(input("请输入: 剪刀(0)、石头(1)、步(2) :"))
if a == 0:
    print("你的输入为:剪刀(0)")
    if x == 0:
        print("随机生成数字为:剪刀(0)")
    elif x == 1:
        print("随机生成数字为:石头(1)")
    else:
        print("随机生成数字为:步(2)")

    if x == 0:
        print("高手不分胜负，再来")
    elif x == 1:
        print("哈哈，你输了:")
    else:
        print("你赢了，我认输")
elif a == 1:
    print("你的输入为:石头(1)")
    if x == 0:
        print("随机生成数字为:剪刀(0)")
    elif x == 1:
        print("随机生成数字为:石头(1)")
    else:
        print("随机生成数字为:步(2)")

    if x == 0:
        print("你赢了，我认输")
    elif x == 1:
        print("高手不分胜负，再来")
    else:
        print("哈哈，你输了:")
elif a == 2:
    print("你的输入为:步(2)")
    if x == 0:
        print("随机生成数字为:剪刀(0)")
    elif x == 1:
        print("随机生成数字为:石头(1)")
    else:
        print("随机生成数字为:步(2)")

    if x == 0:
        print("哈哈，你输了:")
    elif x == 1:
        print("你赢了，我认输")
    else:
        print("高手不分胜负，再来")
else:
    print("你的输入不正确")
